﻿using System.ComponentModel.DataAnnotations;

namespace Entity.ERP.DTO.PurchaseArriveOrder
{
    /// <summary>
    /// 采购到货单子单模型 - 新增
    /// </summary>
    public class PurchaseArriveOrderItemAddDTO
    {
        /// <summary>
        /// 采购到货单 ID
        /// </summary>
        [Required(ErrorMessage = "采购到货单ID PurchaseArriveOrderId不能为空")]
        public string PurchaseArriveOrderId { get; set; }

        /// <summary>
        /// 流转卡号
        /// </summary>
        [Required(ErrorMessage = "流转卡号 CardNo不能为空")]
        public string CardNo { get; set; }

        /// <summary>
        /// 物料 ID
        /// </summary>
        [Required(ErrorMessage = "物料ID GoodsId不能为空")]
        public string GoodsId { get; set; }

        /// <summary>
        /// 到货数量
        /// </summary>
        [Required(ErrorMessage = "到货数量 NumberArrived不能为空")]
        public decimal NumberArrived { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }
    }
}
